QueryServiceStatus (advapi32)
Last changed: Arjan Mels-77.160.7.209

.
Summary
TODO - a short description

C# Signature:

[DllImport("advapi32.dll", EntryPoint = "QueryServiceStatus", CharSet = CharSet.Auto)]
public static extern bool QueryServiceStatus(IntPtr hService,ref SERVICE_STATUS dwServiceStatus);

VB.NET Signature:

<Runtime.InteropServices.DllImport("advapi32.dll", CharSet:=Runtime.InteropServices.CharSet.Auto, SetLastError:=True)> _

Public Shared Function QueryServiceStatus(ByVal hService As IntPtr, ByRef dwServiceStatus As SERVICE_STATUS) As Boolean

End Function

VB Signature:

Declare Function QueryServiceStatus Lib "advapi32.dll" (TODO) As TODO

User-Defined Types:

None.

Notes:

See SERVICE_STATUS definition.

See OpenService to get the hService.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation